


desc "Description of what the lane does"
  lane :abc do
   #newApp
    #buildapp
     #gymapp
    upappstore
end


#新建itunnes connnect上创建一个app
  desc "Description of what the lane does"
  lane :newApp do
  create_app_online(
  username: "developer.swifter@gmail.com",
  app_identifier: "com.zuqiu.fortune",
  app_name: "com.zuqiu.shijiefoot",
  language: "English_Australian",
  app_version: "1.0",
  sku: "com.zuqiu.shijiefoot",
)
end

#编译版本号修改
  desc "Description of what the lane does"
  lane :buildapp do
   #app_store_build_number
   increment_build_number(
   build_number: "87" # set a specific number

   # build_number: app_store_build_number + 1,
   # xcodeproj: "Example.xcodeproj"
   )
end


#打包
 desc "Description of what the lane does"
lane :gymapp do
gym(
 scheme: "fortune",
 clean: true,
 silent:true,
#output_directory:"/Users/zuqiu/Desktop/ipa",
#output_name:"hjw",
export_xcargs: "-allowProvisioningUpdates",
export_options:{
#method: "ad-hoc",
#,app-store
exportOptionsPlist:"./ExportOptions.plist"
}
 )
end


#上传appstore
desc "Description of what the lane does"
  lane :upappstore do
   ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"] = "-t DAV"
   deliver(
    username: 'developer.swifter@gmail.com',
    submit_for_review: true,
app_identifier:"com.zuqiu.shijiefoot",
    #ipa:"./ss.ipa",
    force: true,
    #metadata_path: "./fastlane/metadata"
)
end

 # produce(
  #  username: 'ou7i38@163.com',
# ["Brazilian Portuguese", "Danish", "Dutch", "English", "English_Australian", "English_CA", "English_UK", "Finnish", "French", "French_CA", "German", "Greek", "Indonesian", "Italian", "Japanese", "Korean", "Malay", "Norwegian", "Portuguese", "Russian", "Simplified Chinese", "Spanish", "Spanish_MX", "Swedish", "Thai", "Traditional Chinese", "Turkish", "Vietnamese"]

 #   app_identifier: 'com.zuqiu.132',
   # app_name: 'MyAppsxddss',
  #  language: 'Japanese',
  #  app_version: '1.0',
   # sku: '123ss'
#  )




#编译版本号修改
#app_store_build_number
  # increment_build_number(
   #build_number: "85" # set a specific number

   # build_number: app_store_build_number + 1,
   # xcodeproj: "Example.xcodeproj"
#)


